#pragma once
#include "stdafx.h"
#include "BaseMessage.h"
#include "MsgQueue.h"
class CClient
{
public:
	CClient(void); 
	~CClient(void);
	SOCKET Connect(char* strIP,DWORD dwPort);
	friend unsigned int __stdcall WorkFunc(void * prama);
	void SendToSocket(char* buffer,DWORD dwSize);
	CMsgQueue* GetMsgQueue()	{return &m_MsgQueue;}
private:
	SOCKET m_socket;
	CMsgQueue m_MsgQueue;
	HANDLE m_hCompletionPort;
};
